import request from '@/utils/request'


export function editTemplate(data) {
    return request({
      url: '/ny-iqc/handled/editTemplate',
      method: 'put',
      data
    })
}
export function templateInfo(query) {
    return request({
      url: '/ny-iqc/handled/templateInfo',
      method: 'get',
      params: query
    })
}
export function addTemplate(data) {
    return request({
      url: '/ny-iqc/handled/insertTemplate',
      method: 'post',
      data
    })
}
export function deleteTemplate(params) {
    return request({
      url: '/ny-iqc/handled/deleteTemplate',
      method: 'delete',
      params
    })
}
//查询指标
export function getTemplateList(query) {
    return request({
      url: '/ny-iqc/handled/templateList',
      method: 'get',
      params: query
    })
}

